﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using SpreadsheetGear;

namespace WorkbookDesigner.Addons.WorkbookExplorer.Model
{
    public class BookModel : TreeNode
    {
        public IWorkbook Workbook { get; private set; }

        public BookModel(IWorkbook workbook)
        {
            Workbook = workbook;
            this.Name = $"BookNamed-{workbook.Name}";
            this.Text = workbook.Name;
        }
    }
}
